package com.wn.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Docter
 * @date 2022 -07-15
 * @desc
 *
 * @Slf4j 注解帮我们创建了一个日志对象,可以直接打印日志
 */
@Slf4j
@RestController
public class DemoController {

    @RequestMapping("/demo01")
    public String demo01(){

        log.info("我是日志...");

        String msg = "hello";

        log.info("我是日志...{}",msg);

        return "demo01";
    }
}
